package services

import (
	"system_go/dao"
	"system_go/models"
)

func GetAllMembers(membersParam map[string]interface{}) (error, []models.Member, int64) {
	err, membersData, total := dao.GetAllMembers(membersParam)
	return err, membersData, total
}

func AddMembers(members models.Member) error {
	err := dao.AddMembers(members)
	return err
}

func DelMembers(id string) error {
	err := dao.DelMembers(id)
	return err
}

func UpdateMembers(members models.Member) error {
	err := dao.UpdateMembers(members)
	return err
}
